package com.health.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.health.mapper.CheckItemMapper;
import com.health.service.CheckItemService;
import com.itheima.pojo.CheckItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass = CheckItemService.class)
@Transactional
public class CheckItemImpl implements CheckItemService {
    @Autowired
    private CheckItemMapper checkItemMapper;

    @Override
    public void add(CheckItem checkItem) {
        checkItemMapper.add(checkItem);
    }

    @Override
    public void deleteById(int checkItemId) {
        checkItemMapper.deleteById(checkItemId);
    }

    @Override
    public void edit(CheckItem checkItem) {
        checkItemMapper.edit(checkItem);
    }

    @Override
    public CheckItem findById(int checkItemId) {
        CheckItem checkItem=checkItemMapper.findById(checkItemId);
        return checkItem;
    }


}
